package tt.dz.service.middleware;
//TODO 注释
import java.util.Map;
//解析报文公用服务类  中间件上报:要求付盛做成JSON格式的字符串，方便解析
public interface AnalysisService {
	//str中包含协议类型和协议版本号。
	//6.1	注册签到
	public Map<String,String>  login(String str);
	public Map<String,String>  logout(String str);
	//6.2	控制指令
	public Map<String,String> startChargeReturn( Map<String, String> map);
	public Map<String,String> stopChargeReturn( Map<String, String> map);
	public Map<String,String> bespeakReturn( Map<String, String> map);
	public Map<String,String> cancelBespeakReturn( Map<String, String> map);
	public Map<String,String> restartChargerReturn( Map<String, String> map);
	//6.2.6	固件更新下发指令
	public Map<String,String> updateFirmwareReturn( Map<String, String> map);
	//6.3设置指令
	public Map<String,String> findHardwareServerIpReturn( Map<String, String> map);
	public Map<String,String> setHardwareServerIpReturn( Map<String, String> map);
	public Map<String,String> setTimeReturn( Map<String, String> map);
	public Map<String,String> findRateReturn( Map<String, String> map);
	public Map<String,String> setRateReturn( Map<String, String> map);
	public Map<String,String> setQrCodeReturn( Map<String, String> map);
	public Map<String,String> findWhiteListReturn( Map<String, String> map);
	public Map<String,String> setWhiteListReturn( Map<String, String> map);
	//6.4  交互指令  
	public Map<String,String> requestPayByCard(Map<String, String> map);//刷卡请求
	//6.5	充电设备主动上传指令
	public Map<String,String> uploadHeart( Map<String, String> map);
	public Map<String,String> uploadChange(Map<String, String> map);//遥变
	public Map<String,String> uploadFirmwareStatus(Map<String, String> map);//6.5.3	固件更新状态上传
	public Map<String,String> uploadBill(Map<String, String> map);//6.5.4	账单主动上传
	public Map<String,String> uploadChargeData(Map<String, String> map);//6.5.5	充电数据上传
	public Map<String,String> uploadBatteryData(Map<String, String> map);//6.5.6	电池详情报文（可选）
	//5.4.1	充电状态召集 上传返回
	public Map<String,String> summonReturnUploadTelemetry(Map<String, String> map);//1.1 召唤上传  充电桩回复遥测数据
	public Map<String,String> summonReturnUploadTelesignal(Map<String, String> map);//1.1 召唤上传  充电桩回复遥信数据
	public Map<String,String> summonReturnUploadPulse(Map<String, String> map);//1.1 召唤上传  充电桩回复遥脉数据
	//ev3c 2.0版本使用
	public Map<String, String> chargerRegister(Map<String, String> map);
	public Map<String, String> chargerUnRegister(Map<String, String> map);
	public Map<String, String> chargerLogin(Map<String, String> map);
	public Map<String, String> chargerLogout(Map<String, String> map);

	Map<String,String> setParamReturn(Map<String, String> map);
}
